package com.qingcloud.api.dcengine.service.fallback;

import com.qingcloud.api.dcengine.dto.TablePageDTO;
import com.qingcloud.api.dcengine.dto.edata.CommonEquipmentData;
import com.qingcloud.api.dcengine.dto.edata.CommonEquipmentDataV2;
import com.qingcloud.api.dcengine.model.edata.EquipmentDataListParam;
import com.qingcloud.api.dcengine.model.edata.EquipmentDataPageParam;
import com.qingcloud.api.dcengine.model.edata.EquipmentUpdateGpsParam;
import com.qingcloud.api.dcengine.service.EquipmentDataApi;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;

/**
 * 区域数据熔断保护实现
 */
@Component
public class EquipmentDataApiFallback implements EquipmentDataApi {


    /**
     * 分钟数据列表查询接口
     */
    public List<CommonEquipmentDataV2> minuteList(EquipmentDataListParam listParam) {
        return Collections.emptyList();
    }

    /**
     * 分钟数据通用分页查询接口 新
     */
    public TablePageDTO<CommonEquipmentDataV2> minutePage(EquipmentDataPageParam pageParam) {
        return new TablePageDTO<CommonEquipmentDataV2>();
    }

    /**
     * 小时数据列表查询接口
     */
    public List<CommonEquipmentDataV2> hourList(EquipmentDataListParam listParam) {
        return Collections.emptyList();
    }

    /**
     * 小时数据通用分页查询接口 新
     */
    public TablePageDTO<CommonEquipmentDataV2> hourPage(EquipmentDataPageParam pageParam) {
        return new TablePageDTO<CommonEquipmentDataV2>();
    }

    /**
     * 天数据通用列表接口
     */
    public List<CommonEquipmentData> dayList(EquipmentDataListParam listParam) {
        return Collections.emptyList();
    }

    /**
     * 天数据通用分页查询接口
     */
    public TablePageDTO<CommonEquipmentData> dayPage(EquipmentDataPageParam pageParam) {
        return new TablePageDTO<CommonEquipmentData>();
    }

    /**
     * 更新设备上传的数据经纬度
     */
    public int updateGps(List<EquipmentUpdateGpsParam> gpsParamList) {
        return 0;
    }

}
